package task13;

import javax.swing.Painter;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/4/13 8:20
 * @description:
 */
public class Circle extends Shape {
  double r;

  public Circle() {
  }

  public Circle(double r) {
    this.r = r;
  }

  @Override
  public double area() {
    return 3.14*r*r;
  }

  @Override
  public String getname() {
    return "圆";
  }

  //@Override
  //public void output() {
  //  System.out.println(getname()+"的面积是"+area());
  //}
}
